package com.trucle.vntraffic;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.util.Log;
import android.widget.Button;


public class Main extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Button btnListMap = (Button) findViewById(R.id.btn_list_map);
		Button btnFindMap = (Button) findViewById(R.id.btn_find_map);
		Button btnBookmarkMap = (Button) findViewById(R.id.btn_bookmark_map);
		Button btnOptionMap = (Button) findViewById(R.id.btn_option_map);
		
		/** Button click event for shown on map */
		btnListMap.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				Intent i = new Intent(getApplicationContext(),
						ListviewTraffic.class);
				// staring activity
				startActivity(i);
			}
		});
		
		btnFindMap.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				Intent k = new Intent(getApplicationContext(),
						FindPath.class);
				// staring activity
				startActivity(k);
			}
		});
		
		btnBookmarkMap.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				Intent i = new Intent(getApplicationContext(),
						ListviewTraffic.class);
				// staring activity
				startActivity(i);
			}
		});

		btnOptionMap.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				Intent i = new Intent(getApplicationContext(),
						Option.class);
				// staring activity
				startActivity(i);
			}
		});

		

	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.vn_traffic, menu);
		return true;
	}
}
